package two;

public class A037 {


    //翻转二叉树
    public TreeNode invertTree(TreeNode root) {
        if(root==null ) return root;
        TreeNode temp = root.left;
        root.left=root.right;
        root.right=temp;
        invertTree(root.right);
        invertTree(root.left);
        return root;
    }

}
